# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-nmea2
_pkgname=pynmea2
pkgver=1.19.0_git20240211
pkgrel=1
_commit=802bfb627eb05a1ee655854dd261800061322b9a
pkgdesc="Python library for the NMEA 0183 protocol"
url="https://github.com/Knio/pynmea2"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Knio/pynmea2/archive/$_commit.tar.gz"
builddir="$srcdir/$_pkgname-$_commit"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest .
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
0a9930940a6f33640d3a1c2e89ac95d1244a14c0013a413c15abfa8650fab4b6a39772b09969d407f6d56c96525afcf0b29318eb111572d6d51a1d635747f3fe  py3-nmea2-1.19.0_git20240211.tar.gz
"
